﻿using B.S.Database.Domain.Entity;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.Database.Interface
{
    /// <summary>
    /// 实例化上下文
    /// </summary>
    public class DataDbcontext : DbContext
    {
        public DataDbcontext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 审计字段
        /// </summary>
        //public DbSet<Audit_Table> Audit_Tables { get; set; }
        /// <summary>
        /// 溯源管理基本信息表
        /// </summary>
        public DbSet<Basic_Traceability> Basic_Traceabilities { get; set; }
        /// <summary>
        /// 养殖信息表
        /// </summary>
        public DbSet<Breeding_Information> Breeding_Informations { get; set; }
        /// <summary>
        /// 企业信息
        /// </summary>
        public DbSet<Company_Information> Company_Informations { get; set; }
        /// <summary>
        /// 商品信息表
        /// </summary>
        public DbSet<Goods_Infomation> Goods_Infomations { get; set; }
        /// <summary>
        /// 免疫信息表
        /// </summary>
        public DbSet<Immune_Infomation> Immune_Infomations { get; set; }
        /// <summary>
        /// 企业信息
        /// </summary>
        public DbSet<Picture_Information> Picture_Informations { get; set; }
        /// <summary>
        /// 深加工信息
        /// </summary>
        public DbSet<Processing_Infomation> Processing_Infomations { get; set; }
        /// <summary>
        /// 权限列表
        /// </summary>
        public DbSet<Promission> Promissions { get; set; }
        /// <summary>
        /// 角色列表
        /// </summary>
        public DbSet<Role> Roles { get; set; }
        /// <summary>
        /// 角色权限
        /// </summary>
        public DbSet<RolePromission> RolePromissions { get; set; }
        /// <summary>
        /// 屠宰信息表
        /// </summary>
        public DbSet<Slaughter_Information> Slaughter_Informations { get; set; }
        /// <summary>
        /// 供应商		
        /// </summary>
        public DbSet<Supplier> Suppliers { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<User> Users { get; set; }
        /// <summary>
        /// 用户角色
        /// </summary>
        public DbSet<UserRole> UserRoles { get; set; }
    }
}
